﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="JobAdmin.ascx.cs" Inherits="Micronet.OpenWeb.TuyenDung.Admin.Views.Shared.JobAdmin" %>
<p>
    <a href="JobEdit.aspx"> Thêm</a>
</p>

            <owc:OwGrid ID="jobGrid" runat="server" 
     
                SkinID="OwGridAdmin" DataSourceID="JobsOds"
      >
           
                <MasterTableView DataSourceID="JobsOds"  DataKeyNames="jobID">

               
                    <Columns>
                      
                        <owct:GridTemplateColumn HeaderText='<%$ OwR:Code %>'>
                        <ItemTemplate>
                        <%# Eval("JobID") %>
                        </ItemTemplate>
                        </owct:GridTemplateColumn>
                        <owct:GridTemplateColumn HeaderText='<%$ OwR:TitleLabel %>'>
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td colspan="2">
                                            <a href="#" onclick='return false;'>
                                                <b>
                                               <i> <%# Eval("JobName")%>( <asp:Localize
                                                        ID="Localize1" Text="<%$ OwR: ViewCountLabel %>" runat="server"></asp:Localize>)</i>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="DateTimeCreatedLabel" runat="server" Text="<%$ OwR: DateTimeCreatedLabel%>" />:
                                        </td>
                                        <td>
                                            <%#Eval("DateTimeCreated").OwToDateTimePublishDate()%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="EnableBeginLabel" runat="server" Text='<%$ OwR:Enable %>' />:
                                        </td>
                                        <td>
                                            <asp:Localize Text="<%$ OwR: FromDate %>" runat="server"></asp:Localize>:&nbsp;<%#Eval("EnableBegin").OwToDateTimePublishDate()%>&nbsp;<asp:Localize
                                                Text="<%$ OwR: ToDate %>" runat="server"></asp:Localize>&nbsp;<%#Eval("EnableEnd").OwToDateTimePublishDate()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="Literal1" runat="server" Text="<%$ OwR: HomeDisplayLabel%>" />:
                                        </td>
                                        <td>
                                            <asp:Localize Text="<%$ OwR: FromDate %>" runat="server"></asp:Localize>:&nbsp;<%#Eval("HomeDisplayBegin").OwToDateTimePublishDate()%>&nbsp;<asp:Localize
                                                Text="<%$ OwR: ToDate %>" runat="server"></asp:Localize>&nbsp;<%#Eval("HomeDisplayEnd").OwToDateTimePublishDate()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="Literal2" runat="server" Text="<%$ OwR: HotLabel%>" />:
                                        </td>
                                        <td>
                                            <asp:Localize Text="<%$ OwR: FromDate %>" runat="server"></asp:Localize>:&nbsp;<%#Eval("HotDisplayBegin").OwToDateTimePublishDate()%>&nbsp;<asp:Localize
                                                Text="<%$ OwR: ToDate %>" runat="server"></asp:Localize>&nbsp;<%#Eval("HotDisplayEnd").OwToDateTimePublishDate()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="CreatingUserLabel" runat="server" Text='<%$ Ow: string.Format("{0}/{1}",Resources.OpenWeb.CreatingUserLabel,Resources.OpenWeb.EditingUserLabel)%>' />:
                                        </td>
                                        <td>
                                                    </tr>
                                </table>
                            </ItemTemplate>
                        </owct:GridTemplateColumn>
                        <owct:GridTemplateColumn HeaderText='<%$ OwR:InfoLabel %>'>
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="LanguageLabel" runat="server" Text="<%$ OwR: Language%>" />:
                                            <%--//thay dong tren bang dong duoi!!!--%>
                                            <owc:OwR runat="server" OwText="Language" OwSuffix=":" />
                                        </td>
                                        <td>
                                     
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="CategoryLabel" runat="server" Text="<%$ OwR: CategoryLabel%>" />:
                                        </td>
                                        <td>
                                    
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="PortalLabel" runat="server" Text="<%$ OwR: PortalLabel%>" />:
                                        </td>
                                        <td>
                                      
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="NetworkLabel" runat="server" Text="<%$ OwR: NetworkLabel%>" />:
                                        </td>
                                        <td>
                               
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="CommentCountLabel" runat="server" Text="<%$ OwR: CommentCountLabel%>" />:
                                        </td>
                                        <td>
                                            <a href="#" title="">
                                           
                                            </a>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </owct:GridTemplateColumn>
                        <owct:GridTemplateColumn HeaderText='<%$ OwR:CommandLabel %>'>
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="EnableLabel" runat="server" Text="<%$ OwR: EnableLabel%>" />:
                                        </td>
                                        <td>
                                            <owc:OwCheckBox ID="IsEnabledCheckBox" runat="server" Checked='<%#Eval("IsEnabled")%>'
                                                OnCheckedChanged="IsEnabledCheckBox_CheckedChanged" AutoPostBack="true"  
                                                CssClass="HiddenText" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="HomeDisplayLabel" runat="server" Text="<%$ OwR: HomeDisplayLabel%>" />:
                                        </td>
                                        <td>
                                            <owc:OwCheckBox ID="IsHomeDisplayCheckBox" runat="server" Checked='<%#Eval("IsHomeDisplay")%>'
                                                AutoPostBack="true"  CssClass="HiddenText" OnCheckedChanged="IsHomeDisplayCheckBox_CheckedChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="HotLabel" runat="server" Text="<%$ OwR: HotLabel%>" />:
                                        </td>
                                        <td>
                                            <owc:OwCheckBox ID="IsHotCheckBox" runat="server" Checked='<%#Eval("IsHot")%>' AutoPostBack="true"
                                              CssClass="HiddenText" OnCheckedChanged="IsHotCheckBox_CheckedChanged" />
                                        </td>
                                    </tr>
                                 
                                    <tr>
                                        <td>
                                            <asp:Literal ID="DeletedLabel" runat="server" Text="<%$ OwR: Delete%>" />:
                                        </td>
                                        <td>
                                            <owc:OwCheckBox ID="IsDeletedCheckBox" runat="server" Checked='<%#Eval("IsDeleted")%>'
 CssClass="HiddenText" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="ApproveLiteral" runat="server" Text="<%$ OwR: Approve%>" />:
                                        </td>
                                        <td>
                                            <owc:OwCheckBox ID="IsAprrovedCheckBox" runat="server" Checked='<%#Eval("IsApproved")%>'
                                                Text="" CssClass="HiddenText" />
                                          
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </owct:GridTemplateColumn>
                        <owct:GridTemplateColumn AllowFiltering="False" FilterControlAltText="Filter TemplateColumn1 column"
                            UniqueName="TemplateColumn1">
                            <ItemTemplate>
                                <a href='/Admin/Views/Site/JobEdit.aspx?id=<%#Eval("jobID")%>'>
                                    <img src='/App_Themes/OpenWeb/OwImages/vi-VN/CommandNameIcons/edit.gif' runat="server" id="UpdateImage" /></a></ItemTemplate>
                        </owct:GridTemplateColumn>
                        <owct:GridTemplateColumn AllowFiltering="False" UniqueName="TemplateColumn">
                            <ItemTemplate>
                                <a id="linkDelete" runat="server" href="#" title="Confirm delete">
                                    <img src='/App_Themes/OpenWeb/OwImages/vi-VN/CommandNameIcons/delete.gif' runat="server" id="DeleteImage" alt='<%$ OwR:DeleteCommandLabel %>' />
                                </a>
                                <asp:Button runat="server" CommandName="del" ID="btnDelete" CssClass="displaynone"
                                    Text='<%$ OwR:DeleteCommandLabel %>' />
                            </ItemTemplate>
                        </owct:GridTemplateColumn>
                    </Columns>
                </MasterTableView>


            </owc:OwGrid>
<owc:OwObjectDataSource ID="JobsOds" runat="server" 
    DataObjectTypeName="Micronet.OpenWeb.Entity.OwJobsEntity" 
    DeleteMethod="OwDelete" OldValuesParameterFormatString="original_{0}" 
    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwJobsBLL">
    <SelectParameters>
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>



